package me.ereach.reflections;

public class Point3D {
    private float x;
    private float y;
    private float z;

    public Point3D(float x, float y, float z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public Point3D() {
        x = 0;
        y = 0;
        z = 0;
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public float getZ() {
        return z;
    }

    public void setZ(float z) {
        this.z = z;
    }

    @Override
    public String toString() {
        return "Point3D{" +
                "x=" + x +
                ", y=" + y +
                ", z=" + z +
                '}';
    }

    private double getDistance(Point3D o) {
        float h = this.y - o.y;
        float w = this.x - o.x;
        float s = this.z - o.z;

        return Math.sqrt(Math.pow(h, 2) + Math.pow(w, 2) + Math.pow(s, 2));
    }
}
